home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!not-for-mail
- From: gfraley@primenet.com
- Newsgroups: comp.lang.rexx
- Subject: Re: SysCreateObject Drive Object
- Date: 22 Jan 1996 21:05:01 -0700
- Organization: Primenet Services for the Internet
- Sender: root@primenet.com
- Message-ID: <4e1mpd$d5h@nnrp1.news.primenet.com>
- References: <4dvpqj$1kk@lyra.csx.cam.ac.uk>
- Reply-To: gfraley@primenet.com
- X-Posted-By: ip173.mci.primenet.com
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- In <4dvpqj$1kk@lyra.csx.cam.ac.uk>, rdhw@cus.cam.ac.uk (Robin D.H. Walker) writes:
- >When I last looked, the online rexxtut document could not answer
- >the following questions.
- >Can anyone point me to information which supplies the correct
- >incantation to SysCreateObject to do either or both of the following:
- >
- >1) To create a Drive Object (*not* a folder object) for a certain
- > drive letter;
-
- /* Create "Disk" Object */
- /* DRIVENUM=n n specifies the logical drive number between 1 & 26 */
- /* corresponding to drive letters A-Z */
- If RxFuncQuery("SysLoadFuncs") Then Do
- Call RxFuncAdd "SysLoadFuncs","REXXUTIL","SysLoadFuncs"
- Call SysLoadFuncs
- End
-
- RC = SysCreateObject("WPDisk",,
- "Drive A",,
- "<WP_DESKTOP>",,
- "NODELETE=NO;DRIVENUM=1",,
- "Update")
- If RC Then
- Say '"Drive" created successfully'
- Else
- Say '"Drive" could not be created'
-
- >2) To create a shadow of an existing drive object in the Drives
- > folder GIVEN THAT THE OS/2 DRIVE OBJECTS HAVE NO WPS NAME
- > from which to create a shadow reference.
- >
-
- Hmmmm. I'm working on it!!
-
-
- >Thanks in advance.
- >--
- >Robin Walker (Network Admin), Queens' College, Cambridge, CB3 9ET, GB
- >rdhw@cam.ac.uk IBMmail:i1006437 Tel:+44 1223 335528 Fax:+44 1223 335566
-
-
- Gaylen Fraley \\||//
- Team OS/2 ( .. )
- -----------------------------------oOO--()--OOo--------------------------------
- John 3:16 "For God so loved the world, that He gave His only begotten Son,
- that whosoever believeth in Him, should not perish, but have everlasting life."
- -------------------------------------------------------------------------------
-
-